<?php
/**
 * This file is part of Hyperf Mall.
 *
 * @link     https://gitee.com/scwlkj/hypref_mall
 * contact  hyperf_mall@163.com
 */

declare(strict_types=1);

namespace App\JsonRpc;

use App\Repository\MemberFooterRepository;
use Hyperf\RpcServer\Annotation\RpcService;
use App\JsonRpc\Interfaces\MemberFooterServiceInterface;

/**
 * @RpcService(name="Member::MemberFooterService", protocol="jsonrpc", server="jsonrpc")
 */
class MemberFooterService extends BaseService implements MemberFooterServiceInterface
{
    public function init()
    {
        $this->repository = MemberFooterRepository::getInstance();
    }

    /**
     * Notes: 根据条件删除
     * Author: Bruce.z
     * DateTime: 2022/10/24 11:25
     * @param array $condition
     * @return mixed
     */
    public function removeAll(array $condition)
    {
        return $this->repository->removeAll($condition);
    }
}
